//
//  CJAllAssetsCell.m
//  Boss
//
//  Created by admin on 2018/9/18.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "CJAllAssetsCell.h"
@interface CJAllAssetsCell()

@property (strong, nonatomic) IBOutlet UILabel *blanceLabel;

@property (strong, nonatomic) IBOutlet UILabel *totalAmountLabel;
@property (strong, nonatomic) IBOutlet UILabel *yesterDayLabel;

@property (strong, nonatomic) IBOutlet UILabel *transferCountLabel;
@property (strong, nonatomic) IBOutlet UILabel *tansferLabel;

@property (strong, nonatomic) IBOutlet UILabel *vaildClickLabel;


@end
@implementation CJAllAssetsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setTotalAmount:(CJAssetsTotalAmount *)totalAmount
{
    _totalAmount = totalAmount;
    self.blanceLabel.text = [NSString stringWithFormat:@"%.2f",totalAmount.balance.floatValue/1000.0];
    self.totalAmountLabel.text =[NSString stringWithFormat:@"%.2f",totalAmount.totalAmount.floatValue/1000.0] ;
    self.yesterDayLabel.text = [NSString stringWithFormat:@"%.2f",totalAmount.yesterDayAmount.floatValue/1000.0];
    
    self.transferCountLabel.text = totalAmount.totalTransferCount;
    self.tansferLabel.text = [NSString stringWithFormat:@"%.2f",totalAmount.transferAmount.floatValue/1000.0];
    self.vaildClickLabel.text = totalAmount.validClick;
    
}


- (IBAction)allForward:(id)sender {
    if ([self.delegate respondsToSelector:@selector(didAllForward)]) {
        [self.delegate didAllForward];
    }
    
}

- (IBAction)forwardRevenue:(id)sender {
    if ([self.delegate respondsToSelector:@selector(didForwardRevenue)]) {
        [self.delegate didForwardRevenue];
    }
    
    
}

- (IBAction)putForword:(id)sender {
    
    if ([self.delegate respondsToSelector:@selector(didPutForwardAction)]) {
        [self.delegate didPutForwardAction];
    }
    
    
    
    
}


@end
